package xyz.luhui1hao.sell.mapper;

import org.springframework.stereotype.Repository;
import xyz.luhui1hao.sell.domain.OrderDetail;

import java.util.List;

/**
 * @InterfaceName OrderDetailMapper
 * @Description TODO
 * @Author luhui1hao
 * @Date 2018/8/22 上午10:48
 * @Version 1.0
 */
@Repository
public interface OrderDetailMapper {

    /**
     * 根据orderId查找订单详情
     * @param orderId
     * @return
     */
    List<OrderDetail> findByOrderId(String orderId);

    /**
     * 插入订单详情
     * @param orderDetail
     * @return
     */
    int insertOrderDetail(OrderDetail orderDetail);

    /**
     * 更新订单详情
     * @param orderDetail
     * @return
     */
    int updateOrderDetail(OrderDetail orderDetail);
}
